#!/usr/bin/env bash
cd `dirname $0`
screen_name="rpi-cdrom"
screen  -S ${screen_name} -X quit
screen -dmS ${screen_name}
cmd="node `dirname $0`/index.js"
screen -x -S ${screen_name} -p 0 -X stuff "$cmd"
screen -x -S ${screen_name} -p 0 -X stuff '\n'
